package com.yunhe.policyfulfillment.authority.service;
import com.yunhe.common.exception.ArgumentErrorException;
import com.yunhe.common.exception.ObjectNotFoundException;
import com.yunhe.common.model.mybatis.PageResult;
import com.yunhe.policyfulfillment.authority.domain.PolicyCompanyRegistration;
import com.yunhe.policyfulfillment.authority.model.AuditPolicyCompanyRegistration;
import com.yunhe.policyfulfillment.authority.model.PolicyCompanyRegistrationQueryCondition;

/**
 * @description 企业注册表
 * @author misty
 * @date 2021-09-18
 */
public interface PolicyCompanyRegistrationService {

    /**
     * 新增
     */
    public int createPolicyCompanyRegistration (PolicyCompanyRegistration policyCompanyRegistration) throws ArgumentErrorException;

    /**
     * 删除
     * @param id
     */
    public int deletePolicyCompanyRegistration(Long id);

    /**
     * 更新
     */
    public int updatePolicyCompanyRegistration(PolicyCompanyRegistration policyCompanyRegistration);

    /**
     * 根据主键 id 查询
     */
    public PolicyCompanyRegistration findPolicyCompanyRegistrationById(Long id);


    PageResult findPolicyCompanyRegistrationByCondition(PolicyCompanyRegistrationQueryCondition policyCompanyRegistrationQueryCondition);

    void auditPolicyCompanyRegistration(AuditPolicyCompanyRegistration auditPolicyCompanyRegistration) throws ArgumentErrorException, ObjectNotFoundException;

}